package com.jia.train.seat.service;

import com.jia.train.global.page.PageResponse;
import com.jia.train.seat.entity.DailyTrainCarriage;
import com.jia.train.seat.request.DailyTrainCarriageQueryRequest;
import com.jia.train.seat.request.DailyTrainCarriageSaveRequest;
import com.jia.train.seat.response.DailyTrainCarriageQueryResponse;
import com.jia.train.seat.response.DailyTrainCarriageSaveResponse;

import java.util.Date;
import java.util.List;

public interface DailyTrainCarriageService {

    DailyTrainCarriageSaveResponse insert(DailyTrainCarriageSaveRequest request);

    PageResponse<DailyTrainCarriageQueryResponse> selectPage(DailyTrainCarriageQueryRequest request);

    void deleteDailyTrainCarriage(Long id);

    List<DailyTrainCarriage> selectAllByTripCode(String tripCode);

    void genDailyTrainCarriage(Date date, String code);

    List<DailyTrainCarriage> queryDailyTrainCarriage(Date date, String code, String seatType);

}
